package cn.iocoder.yudao.module.system.controller.admin.auth.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema(description = "管理后台 - 微信登录状态 Response VO")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class AuthWechatLoginStatusRespVO {

    @Schema(description = "登录状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "pending")
    private String status; // pending：等待中，success：成功，failed：失败

    @Schema(description = "访问令牌", example = "eyJhbGciOiJIUzUxMiJ9.123")
    private String accessToken;

    @Schema(description = "刷新令牌", example = "eyJhbGciOiJIUzUxMiJ9.456")
    private String refreshToken;

    @Schema(description = "用户编号", example = "1")
    private Long userId;

    @Schema(description = "用户昵称", example = "芋艿")
    private String nickname;

    @Schema(description = "用户头像", example = "https://www.iocoder.cn/xxx.png")
    private String avatar;

    @Schema(description = "错误消息", example = "用户不存在")
    private String errorMsg;

}